package com.fwx.controller;

import com.fwx.entity.Customer;
import com.fwx.services.CustomerServer;
import com.fwx.services.iml.CustomerServerImp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author fengwenxiang
 * @date 2022/11/16 16:25
 * @description
 */
@RestController
public class CustomerController {

    @Autowired
    private CustomerServer customerServer;
    @GetMapping("/test")
    public List getCustomer(){

        return customerServer.allCustomer();
    }

}
